<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="EditOrderShipments.ascx.cs"
	Inherits="UCommerce.Web.UI.Orders.EditOrderShipments" %>

<div class="propertyPane leftAligned">
	<h2 class="propertyPaneTitel"><asp:Localize runat="server" meta:resourcekey="Payments" /></h2>
    <asp:Repeater runat="server" ID="PaymentRepeater" DataSource="<%# Payments %>">
        <ItemTemplate>
            <commerce:PropertyPanel runat="server" meta:resourceKey="PaymentMethod">
                <%# AsPayment(Container.DataItem).PaymentMethodName %>
            </commerce:PropertyPanel>
			<commerce:PropertyPanel runat="server" meta:resourceKey="Amount">
                <%# AsPayment(Container.DataItem).Amount.ToString("N") %>
            </commerce:PropertyPanel>
			<commerce:PropertyPanel runat="server" meta:resourceKey="PaymentStatus">
                <%# AsPaymentStatus(Container.DataItem).Name %>
            </commerce:PropertyPanel>
            <commerce:PropertyPanel runat="server" meta:resourceKey="TransactionID">
                <%# AsPayment(Container.DataItem).TransactionId %>
            </commerce:PropertyPanel>
			<commerce:PropertyPanel runat="server" meta:resourceKey="ReferenceID">
                <%# AsPayment(Container.DataItem).ReferenceId %>
            </commerce:PropertyPanel>
        </ItemTemplate>
    </asp:Repeater>
	<div class="propertyPaneFooter">-</div>
</div>
<div class="propertyPane leftAligned">
	<h2 class="propertyPaneTitel"><asp:Localize runat="server" meta:resourcekey="Shipments" /></h2>
    <asp:Repeater runat="server" ID="ShipmentRepeater" DataSource="<%# Shipments %>">
        <ItemTemplate>
            <commerce:PropertyPanel runat="server" meta:resourceKey="ShippingMethod">
                <%# AsShipment(Container.DataItem).ShipmentName %>
            </commerce:PropertyPanel>
            <commerce:PropertyPanel runat="server" meta:resourceKey="TrackAndTrace">
                <%# AsShipment(Container.DataItem).TrackAndTrace %>
            </commerce:PropertyPanel>
            <commerce:PropertyPanel runat="server" meta:resourceKey="Notes">
                <%# AsShipment(Container.DataItem).DeliveryNote %>
            </commerce:PropertyPanel>            
        </ItemTemplate>
    </asp:Repeater>
	<div class="propertyPaneFooter">-</div>
</div>
<div class="propertyPane leftAligned">
	<h2 class="propertyPaneTitel"><asp:Localize runat="server" meta:resourcekey="Addresses" /></h2>
    <asp:Repeater runat="server" ID="AddressRepeater" DataSource="<%# Addresses %>">
        <ItemTemplate>
            <commerce:PropertyPanel ID="PropertyPanel6" runat="server" Text="<%# AsAddress(Container.DataItem).AddressName %>">
                
				<div><%# AsAddress(Container.DataItem).FirstName%> <%# AsAddress(Container.DataItem).LastName%></div>
				<div><%# AsAddress(Container.DataItem).CompanyName %></div>
                <div><%# AsAddress(Container.DataItem).Line1 %></div>
                <div><%# AsAddress(Container.DataItem).Line2 %></div>
                <div><%# AsAddress(Container.DataItem).PostalCode %>&nbsp;<%# AsAddress(Container.DataItem).City %></div>
                <div><%# AsAddress(Container.DataItem).State %></div>
                <div><%# GetCountryName(AsAddress(Container.DataItem).Country.CountryId) %></div>
                <div><%# AsAddress(Container.DataItem).Attention %></div>
            </commerce:PropertyPanel>
        </ItemTemplate>
    </asp:Repeater>
	<div class="propertyPaneFooter">-</div>
</div>